ORM

数据库是重中之重,我理想中的ORM最重要的功能是Model与数据库的同步,靠migration来同步数据库总觉得哪里怪怪的. 希望能有这样一个工具,同步Model与数据库.

接口定义

API(path='/users/',
    method='POST',
    permissions=['create_users'],
    model=User,
    validator=validator)
    
API(path='/users/',
    method='GET',
    permissions=['list_users'],
    model=User,
    serializer=serializer)

配置

response
    list: 
        body:
            {data:data}
        header:
            {content-type:text/json}
    create: 
    update:
    replace:
    delete:

已注销
981 声望48 粉丝

Focus on programming efficiency